namespace MicroCloud.CodeGeneration.Entities
{
    /// <summary>
    /// 外键关系
    /// </summary>
    public enum ForeignRelation
    {
        /// <summary>
        /// 一对一
        /// </summary>
        OneToOne,
        /// <summary>
        /// 一对多
        /// </summary>
        OneToMany,
        /// <summary>
        /// 多对一
        /// </summary>
        ManyToOne,

        /// <summary>
        /// 拥有单个子项关系
        /// </summary>
        OwnsOne,

        /// <summary>
        /// 拥有多个子项关系
        /// </summary>
        OwnsMany
    }
}
